<div class="heading-buttons">
	<h3 class="glyphicons blog">
		<i></i> Reviews Management
	</h3>
</div>
<div class="separator"></div>
<div class="widget widget-2 widget-body-white finances_summary">
	<div class="widget-head">
		<h4 class="heading glyphicons blog">
			<i></i> Reviews Management
		</h4>
		
		
	</div>
	<div class="widget-body">
		<div class="row-fluid">
			<fieldset>

				

				<div class="separator bottom">
					<div class="pull-right  margin-bottom">

						<form name="action" method="POST"
							action="<?=base_url(); ?>secure/module/module_management">
							<input type="text" name="search"> <select name="filter"
								onchange="this.form.submit()">
								<option value="">-- Select --</option>
								<option value="search">Search</option>
								<option value="inactive">Inactive</option>
								<option value="active">Active</option>
							
							</select>
						</form>

					</div>
				</div>

				<table class="table table-bordered table-striped" cellspacing='0'
					width="100%">
					<!-- Table Header -->
					<thead>
						<tr>
							<th>Module Name</th>
							<th width="50%">Description</th>
						
							<th>ACTION</th>
						</tr>
					</thead>
					<!-- Table Header -->
					<!-- Table Body -->
					<?php if($modules){?>
					<?php foreach ($modules as $modules) : ?>
					<tr>
						<td>
						<h3 class="text-error">
						<?= $modules->module;?>
						</h3>
						<p>
						<?php if($modules->status ==51){?>
						Status : <span class="label label-info">Active</span>
							<?php }else{?>
						Status : <span class="label label-info">Inactive</span>
						<?php }?>
						</p>
						</td>
						
						
						<td align="center"><?= $modules->description;?>
						</td>
						

						<td align="right">
						
						
						<div class="btn-group">
				                <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">Click To Modifie<span class="caret"></span></button>
				                <ul class="dropdown-menu">
				                
				               
				                  <li><a href="<?= base_url();?>secure/module/module_management/change_module_status/<?= $modules->status;?>/<?= $modules->id;?>" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" ><i class="icon-thumbs-up"></i> Make Active</a></li>
				                  <li><a href="<?= base_url();?>secure/module/module_management/change_module_status/<?= $modules->status;?>/<?= $modules->id;?>" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" ><i class="icon-thumbs-down"></i> Make Inactive</a></li>
				                  
				                </ul>
				            </div>
						
						
						<!-- 
							<form name="action" method="POST"
								action="<?=base_url(); ?>secure/approval/reviews/action">
								<input type="hidden" name="reviews_id"
									value="<?= $reviews->id;?>"> <select name="action"
									onchange="this.form.submit()">
									<option value="">-- Action --</option>
									<option value="inactive">Make Inactive</option>
									<option value="active">Make Active</option>
									<option value="delete">Delete</option>
									<option value="edit">Edit</option>
								
								</select>
							</form>
							 -->
						</td>
					</tr>
					<!-- Table Row -->
					<?php endforeach; 
}else { echo "No Data found....";
}?>
					</tbody>
					<!-- Table Body -->
				</table>

			</fieldset>

		</div>

		<div class="pagination pull-right">
		<ul>
			<li>
			</li>
		</ul>
		</div>
	</div>
</div>

